package 富婆梦.第一阶段.第六周.作业.俄罗斯转盘;


import java.io.Serializable;

/**
 * @ProjectName: java-learning
 * @Package: 富婆梦.第一阶段.第五周.作业.俄罗斯转盘
 * @ClassName: Player
 * @Author: hemengjin
 * @Description: 玩家类
 * @Date:2021/8/22 16:06
 * @Version: 1.0
 */
public class Player implements Serializable {
    private boolean life=true;
    private String name;

    Player(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public boolean isLife() {
        return life;
    }

    public boolean fire(){
        return Gun.shoot();
    }

    public void gotShoot(){
        life = false;
    }
}
